package com.mallcloud.mall.product.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mallcloud.mall.common.core.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@ApiModel(value = "SkuModel", description = "sku信息")
@Data
@TableName(value = "P_SKU", autoResultMap = true)
public class SkuModel extends BaseModel {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "属性id")
    private Long skuId;

    @ApiModelProperty(value = "SPU id")
    private Long spuId;

    @ApiModelProperty(value = "sku名称")
    private String skuName;

    @ApiModelProperty(value = "多个销售属性值id逗号分隔")
    private String attrs;

    @ApiModelProperty(value = "sku图片")
    private String imgUrl;

    @ApiModelProperty(value = "售价，整数方式保存")
    private BigDecimal priceFee;

    @ApiModelProperty(value = "市场价，整数方式保存")
    private BigDecimal marketPriceFee;

    @ApiModelProperty(value = "商品编码")
    private String partyCode;

    @ApiModelProperty(value = "商品条形码")
    private String modelId;

    @ApiModelProperty(value = "商品重量")
    private Double weight;

    @ApiModelProperty(value = "商品体积")
    private Double volume;

    @ApiModelProperty(value = "状态 1:enable, 0:disable")
    private Boolean status;
}
